function export_text(samples, classes, fileName)
%EXPORT_TEXT Export input data for mRMR turbo in text format

	% transpose
    samples = samples';
    classes = classes';
    
    % open file for writing
    fh = fopen(fileName, 'w');
    
    % write header
    disp('   Exporting headers...');
    headline = [ int2str(size(samples, 2)), ' ', int2str(size(samples, 1)), '\n'  ];
    fprintf(fh, headline);
    
    % write class data
    fprintf(fh, [sprintf('%.0f ', classes), '\n'] );
    
    % write samples data
    disp('   Exporting samples...');
    for i=1:size(samples, 1)
        fprintf(fh, [ sprintf('%.0f ', samples(i,:)), '\n'] );
    end
    
    % close file
	fclose(fh);
end